<template>
  <div>
    <h1>苏州到 h5</h1>
    <p>{{ name }}</p>
  </div>
</template>
<script lang="ts" setup>
import { onMounted, ref } from "vue";
import api from "@/api";
const name = ref<string | undefined>("");

onMounted(() => {
  api.user.queryUserName().then((res) => {
    console.log("res= >", res);
    name.value = res.username;
  });
});
</script>
<style scoped></style>
